package com.example.knowman.ObService;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.knowman.ReturnMessage.Message;
import com.example.knowman.dao.knowLabelMainEx;
import com.example.knowman.dao.knowMainEx;
import com.example.knowman.dao.knowMainEx9_5ByPeriod;
import com.example.knowman.entity.knowCategory;
import com.example.knowman.entity.knowMain;

import java.util.List;
import java.util.Map;

public interface OBKnowMainService extends IService<knowMain>{

    Integer returnContainKnowCateIdCount(Integer knowCateId);

    Integer returnknowCateIdByknowId(Integer knowId);

    List<knowMain> getAll();

    List<knowMain> getToday();

    List<knowMain> Top();

    //<knowId,knowMain>
    Map<Integer,knowMain> getMapAll();

    Map<Integer,knowMain> getMapTitleLike(String knowTitle);

    void addPraise(Integer knowId);

    void addCommentCount(Integer knowId);

    void addReadCount(Integer knowId);

    List<knowMain> getYear();
}
